﻿using System.Collections.Generic;

namespace Ecos.GroceryList.Domain
{
    public class GroceryList
    {
        private readonly List<Product> _list;

        public GroceryList()
        {
            _list = new List<Product> { Product.From("pancake"), Product.From("milk"), Product.From("eggs") };
        }

        public void Add(Product product)
        {
            _list.Add(product);
        }

        public IEnumerable<Product> ReturnAllProducts()
        {
            return _list;
        }
    }
}
